﻿package com.xeecos{	import com.adobe.serialization.json.JSONEncoder;	public class Article extends Object	{		public var id:int;		public var name:String="";		public var description:String="";		public var url:String="";		public var imageSmall:String="";		public var imageMiddle:String="";		public var imageLarge:String = "";		public var icon:String="";		public var media:int;		public var devices:String="";		public var author:String="";		public var authorUrl:String="";		public var teachUrl:String="";		public var tag:String="";		public var time:Number;		public var ispub:int;		public var favors:int;		public var views:int;		public function Article():void		{		}		public function loadData(obj:Object):void{			for(var i in obj){				if(i=="devices"){					var jsonEncoder:JSONEncoder = new JSONEncoder(obj[i]);					this[i] = jsonEncoder.getString();				}else{					this[i] = obj[i];				}			}		}	}}